package com.zhiyou.demo.controller;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zhiyou.demo.model.UserModel;
import com.zhiyou.demo.service.UserService;

@Controller
@RequestMapping(value="/admin")
public class UserController {

	@Autowired
	UserService userService;
	
	@RequestMapping(value="user/aaa")
	public String user(UserModel userModel,Model model){
		List<UserModel> list = userService.queryUser();
		
		model.addAttribute("user", list);
		
		return "admin/user/aaa";
	}
	
	@RequestMapping(value="user/update",method=RequestMethod.POST)
	public String updat(){
	
		
		
		return "";
	}
	
	
	
}
